<?php namespace Home\Controller;
use Framework\Kernel\Controller;
class IndexController extends Controller{

	//首页
	public function index()
	{
		$category = new \Home\Model\Category;
		$categoryData = $category->getAll();

		$this->assign('category',$categoryData);
		$this->display('index.php');
	}
	//问题列表
	public function lists()
	{
		//把问题全拿出来...
	}
	//问题详情页
	public function con()
	{

	}
}